﻿#pragma once
#include <stdint.h>
#include <string>
#include <functional>
#include <cstring>
#include "enum_define.h"

struct Contract_t {
	uint32_t id;
	Exchange exchange;//交易所 1byte
	ContractType contract_type;// 1 byte
	uint8_t precision;//保留的小数位数
	uint8_t order_min;//每手最低股票数目,*100代表每手最小数目
	uint16_t symbol_len;
	uint16_t name_len;
	char* data;
	int data_size(){return symbol_len+name_len;}

	
};
